import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test3 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String[] strs = new String[3];
        for (int i = 0; i < 3; i++) {
            strs[i] = scanner.nextLine();
        }
        int max = 0;
        for (int i = 1; i < 3; i++) {
            int src = 0;
            int ret = 0;
            while(src < strs[max].length() && src < strs[i].length()) {
                if(strs[max].charAt(src) < strs[i].charAt(src)) {
                    ret = -1;
                    max = i;
                    break;
                } else if (strs[max].charAt(src) > strs[i].charAt(src)) {
                    ret = 1;
                    break;
                }
                src++;
            }
            if(ret == 0) {
                max = strs[max].length() < strs[i].length() ? i : max;
            }
        }
        System.out.println("The largest string is:");
        System.out.println(strs[max]);
    }
}
